from base.base import Base
from selenium.webdriver.common.by import By
class PageOrderSubmit(Base):
    # 提交订单
    submit_btn = By.CSS_SELECTOR, "#submit_order"
    # 获取提交订单结果
    submit_result = By.CSS_SELECTOR, ".erhuh>h3"

    # 点击 提交订单
    def click_submit_order(self):
        self.base_click(self.submit_btn)

    # 获取 订单提交结果
    def get_submit_result(self):
        return self.base_get_text(self.submit_result)